package com.wap.framework.service;

import java.util.List;

import com.wap.framework.dao.ContentDAO;
import com.wap.framework.model.Content;

public class ContentServiceImpl implements ContentService {	

	private ContentDAO contentDAO;
	
	public void setContentDAO(ContentDAO contentDAO) {
		this.contentDAO = contentDAO;
	}
	
	public List<Object> listContent(int pageNum) {
		return contentDAO.listContent(pageNum);
	}

	public Content editContent(int contentID) {
		return this.contentDAO.editContent(contentID);
	}
	
	public void updateContent(Content content) {
		this.contentDAO.updateContent(content);
	}

	public void saveContent(Content content) {
		this.contentDAO.saveContent(content);
	}
	
	public void deleteContent(int[] ids) {		
		contentDAO.deleteContent(ids);
	}	
}
